package com.example.bysj_sb.controller;

import com.example.bysj_sb.domain.GraduateProjectCategory;
import com.example.bysj_sb.domain.GraduateProjectSource;
import com.example.bysj_sb.service.GraduateProjectCategoryService;
import com.example.bysj_sb.service.GraduateProjectSourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@RestController
public class GraduateProjectSourceController {
    @Autowired
    private GraduateProjectSourceService graduateProjectSourceService;
    //查找全部
    @GetMapping("/graduateProjectSource.ctl")
    public List<GraduateProjectSource> findALL(){
        return graduateProjectSourceService.findAll();
    }
}
